#ifndef INFOBOXUI_H
#define INFOBOXUI_H

#include <QWidget>
#include <QPropertyAnimation>

namespace Ui {
class InfoBoxUI;
}

/*! @class InfoBoxUI
 *  @brief A simple info display that displays a message for an inteval and
 *         fades.
 */

class InfoBoxUI : public QWidget
{
    Q_OBJECT
    
public:
    explicit InfoBoxUI(const QString &message, int displayTime = 2000,
                       QWidget *parent = 0);
    ~InfoBoxUI();

private slots:
    void startClose();
    void finishClose();
    
private:
    QGraphicsEffect * fadeEffect;
    QPropertyAnimation * animation;

    Ui::InfoBoxUI *ui;

};

#endif // INFOBOXUI_H
